import {
    httpGet,
  } from './request'
  
  /**
   *
   * @param {年比} query
   */
  const getYearContast = (query) => {
    return httpGet('/getEchars/yearContast', query)
  }
  
  /**
   *
   * @param {年} query
   */
  const getYear = (query) => {
    return httpGet('/getEchars/year', query)
  }

  /**
   *
   * @param {季度} query
   */
  const getQuarter = (query) => {
    return httpGet('/getEchars/quarter', query)
  }

  /**
   *
   * @param {月} query
   */
  const getMonth = (query) => {
    return httpGet('/getEchars/month', query)
  }

  /**
   *
   * @param {周} query
   */
  const getWeek = (query) => {
    return httpGet('/getEchars/week', query)
  }

  /**
   *
   * @param {日} query
   */
  const getDay = (query) => {
    return httpGet('/getEchars/day', query)
  }

  export {
    getYearContast,
    getYear,
    getQuarter,
    getMonth,
    getWeek,
    getDay
  }